<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/kaoqin.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css"/>
    <style>
        .headStr{
            font-size:1.5rem;
            color:#235AA3;
        }
    </style>
</block>
<block name="content" >
    <section class="layui-larry-box mian-page page-attendanceStatistics">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <!--<a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('statistics',array('dept_id'=>$_GET['dept_id'],'user_id'=>$_GET['user_id']))}">返回</a>-->
                    <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('statistics')}">返回</a>
                </blockquote>
                <div style="height:2rem;" class="headStr">
                    <span>{$dept_name}：{$user_name}</span>
                </div>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <div class="layui-tab-item layui-field-box layui-show">
			<table class="layui-table setTabBg" lay-skin="line">
                            <thead>
                                <tr>
                                    <th >月份</th>
                                    <th>出勤(天)</th>
                                    <th>出差(天)</th>
                                    <th>迟到</th>
                                    <th>早退</th>
                                    <th>休假(天)</th>
                                    <foreach name='leave_type' item='type'>
                                        <th>{$type}</th>
                                    </foreach>
                                </tr>

                            </thead>
                            <tbody>
                                <notempty name="detail">
                                    <foreach name='detail' item='attend' key="key">
                                        <tr>
                                            <td>{$key}月</td>
                                            <td>{$attend.all_total}</td>
                                            <td>{$attend.evection}</td>
                                            <td>{$attend.late}</td>
                                            <td>{$attend.early}</td>
                                            <td><if condition="$attend['leave'] neq null">{$attend.leave}<else />0</if></td>
                                            <foreach name='attend.type' item='leave_type'>
                                                <td>{$leave_type}</td>
                                            </foreach>
                                        <tr>
                                    </foreach>
                                </notempty>
                            </tbody>
			</table>
                        <div class="layui-block">共{$count}条数据</div>
<!--                        <div class="larry-table-page clearfix">
                            <input type='hidden' id="followUrl" value="{:U('attentPlan')}">
                            <a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>
                            <div id="page" class="page">{$page}</div>
                        </div>-->
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/attend.js"></script>
    <script type="text/javascript">
        $(initAttend());
    </script>
</block>